﻿using System.ComponentModel.DataAnnotations;
using System;
namespace XSTDZ.ERP.Application.DataContracts
{
    /// <summary>
    /// 库存DTO
    /// </summary>
    [Serializable]
    public class StockDto
    {
        public Guid ID { get; set; }
        [Display(Name = "库存数量")]
        [Required(ErrorMessage = "{0}不能为空！")]
        public float StockCount { get; set; }
        [Display(Name = "总价")]
        [Required(ErrorMessage = "{0}不能为空！")]
        public decimal SumMoney { get; set; }
        [Display(Name = "下限提醒")]
        [Required(ErrorMessage = "{0}不能为空！")]
        public float DownCount { get; set; }
        [Display(Name = "上限提醒")]
        [Required(ErrorMessage = "{0}不能为空！")]
        public float UpCount { get; set; }

        public Nullable<System.Guid> StorehouseID { get; set; }
        [Display(Name = "仓库名称")]
        public string StorehouseName { get; set; }

        public Nullable<System.Guid> ProductID { get; set; }
        [Display(Name = "商品名称")]
        public string ProductName { get; set; }
    }
}
